using System;
using System.ComponentModel;

namespace QLTB.BusinessObjects
{
    /// <summary>
    /// Project: NNS System 
    /// Generated Class for Table : TBL_nhom.
    /// Date: 01/06/2010
    /// Author: Trần Hoàng Tâm
    /// </summary>
    public class TBL_nhom : Object
    {
        #region Init

        private int m_id;
        private string m_tennhom;


        public TBL_nhom()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public TBL_nhom(
            int id,
            string tennhom)
        {
            //
            // TODO: Add constructor logic here
            //
            SetData
                (
                    id,
                    tennhom
                );
        }


        public void SetData(
            int id,
            string tennhom)
        {
            //
            // TODO: Add constructor logic here
            //
            m_id = id;
            m_tennhom = tennhom;
        }

        #endregion

        #region Property

        [DisplayName("id")]
        [Category("Primary Key")]
        public int id
        {
            get { return m_id; }
            set { m_id = value; }
        }

        [DisplayName("tennhom")]
        [Category("Column")]
        public string tennhom
        {
            get { return m_tennhom; }
            set { m_tennhom = value; }
        }

        #endregion
    }
}